package com.xc.service.impl;

import com.xc.mapper.AdMapper;
import com.xc.model.dto.ResultDTO;
import com.xc.model.entity.AdEntity;
import com.xc.model.query.AdQuery;
import com.xc.service.AdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdServiceImpl implements AdService {
    @Autowired
    private AdMapper adMapper;

    @Override
    public ResultDTO getHomeAd(AdEntity adEntity) {
        return ResultDTO.data(adMapper.getHomeAd(adEntity));
    }
}
